9. Experiment: Export up

%load_ext autoreload
%autoreload 2
The autoreload extension is already loaded. To reload it, use:
  %reload_ext autoreload
import pandas as pd
from modelclass import model
model.widescreen()

9.1. Load the precooked model

This model was generated from scratch here

msmallmodel,baseline = model.modelload('models/smallmodel.pcim',run=1,keep='Baseline',silent=1)

9.2. Create new dataframe where the export is increased by 10 percent

impuls_x_10pct = baseline.upd("<2024 2027> x % 10")

9.3. Simulate the model

result_x = msmallmodel(impuls_x_10pct,keep='Export increased by 10 percent',alfa=0.2,solver='newton')

9.4. Display results

with msmallmodel.set_smpl('2020','2030'):
    display(msmallmodel['y cpv g x m gde' ])
msmallmodel['y cpv g  m gde'].difpctlevel.rename().mul100.plot(sharey=True);
../../../_images/modelstart export up_12_0.png
try:
    msmallmodel.modeldash('Y',jupyter=1,inline=1)
except Exception as e:
    print(f"Can't run modeldash here")
apprun
C:\Users\ibhan\Anaconda3\lib\site-packages\jupyter_dash\jupyter_app.py:139: UserWarning: The 'environ['werkzeug.server.shutdown']' function is deprecated and will be removed in Werkzeug 2.1.
  func()